package com.shixj.easy.spider.service;

import com.shixj.easy.spider.model.AbstractEntity;
import com.shixj.easy.spider.model.Record;
import com.shixj.ef.vo.FetchResult;

import java.util.List;

/**
 * Created by shixj on 2018/1/16.
 */
public interface RecordService {
    /**
     * 保存记录
     *
     * @param result
     * @param abstractEntity
     */
    void saveRecord(FetchResult result, AbstractEntity abstractEntity) ;
    Record buildRecord(FetchResult result, AbstractEntity abstractEntity) ;
    void saveRecords(List<Record> records) ;
}
